/**
 * 
 */
package com.softme.trade.model.dao;

import java.io.Serializable;
import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.softme.trade.model.Currency;

/**
 * @author meyer
 *
 */
public class CurrencyDAO  extends HibernateDaoSupport implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public List<Currency> loadAll()
	{
		return getHibernateTemplate().loadAll(Currency.class);
	}

	public Currency load(Long id)
	{
		return getHibernateTemplate().get(Currency.class, id);
	}

	public void saveOrUpdate(Currency Currency)
	{
		getHibernateTemplate().saveOrUpdate(Currency);
	}
	
	public void save(Currency Currency)
	{
		getHibernateTemplate().save(Currency);
	}

	public void delete(Currency Currency)
	{
		getHibernateTemplate().delete(Currency);
	}

}
